Add a layout debug option
authorMatthias Clasen <mclasen@redhat.com>
Fri, 11 Mar 2016 04:14:57 +0000 (23:14 -0500)
committerMatthias Clasen <mclasen@redhat.com>
Fri, 11 Mar 2016 04:21:22 +0000 (23:21 -0500)
This will be used to show box model borders.

docs/reference/gtk/running.sgml
gtk/gtkdebug.h
gtk/gtkmain.c

index 45bd74b7e122ad1c1ab47c9980b594a0de0e9ea1..9ed8a0897e459a86ecc12624c745dfbc0e810443 100644 (file)
@@ -218,7 +218,10 @@ additional environment variables.
       <term>resize</term>
       <listitem><para>Highlight resizing widgets</para></listitem>
     </varlistentry>
-
+    <varlistentry>
+      <term>layout</term>
+      <listitem><para>Show layout borders</para></listitem>
+    </varlistentry>
   </variablelist>
   The special value <literal>all</literal> can be used to turn on all
   debug options. The special value <literal>help</literal> can be used
index e78dd6837f3a82439b80e70e0e59123e20fb73e6..741e1f85ef56246d1045d647c753321038f97dbe 100644 (file)
@@ -55,7 +55,8 @@ typedef enum {
   GTK_DEBUG_INTERACTIVE     = 1 << 17,
   GTK_DEBUG_TOUCHSCREEN     = 1 << 18,
   GTK_DEBUG_ACTIONS         = 1 << 19,
-  GTK_DEBUG_RESIZE          = 1 << 20
+  GTK_DEBUG_RESIZE          = 1 << 20,
+  GTK_DEBUG_LAYOUT          = 1 << 21
 } GtkDebugFlag;
 
 #ifdef G_ENABLE_DEBUG
index 3afc189f7632cff1f75a12439cfcdfb89e61c62e..8547519e825ceef79fb443f145142667138d7383 100644 (file)
@@ -181,7 +181,8 @@ static const GDebugKey gtk_debug_keys[] = {
   {"interactive", GTK_DEBUG_INTERACTIVE},
   {"touchscreen", GTK_DEBUG_TOUCHSCREEN},
   {"actions", GTK_DEBUG_ACTIONS},
-  {"resize", GTK_DEBUG_RESIZE}
+  {"resize", GTK_DEBUG_RESIZE},
+  {"layout", GTK_DEBUG_LAYOUT}
 };
 #endif /* G_ENABLE_DEBUG */